branch-4.1: [feature](paimon) implement create/drop db, create/drop table for paimon (#58894)#61338
Merged
morningman merged 2 commits intoMar 16, 2026
Conversation
…mon (apache#58894) Related apache#56005 this PR implement create/drop database creste/drop table for paimon **1.create databse:** create database if not exists test_db; **2.drop databse:** drop database if exists test_db; **3.create table:** The current storage format is the default Parquet. **3.1 simple table:** CREATE TABLE test_db.test01 ( id int ) engine=paimon; **3.2 table with primaty-key:** CREATE TABLE test_db.test02 ( id int ) engine=paimon properties("primary-key"=id); **3.3 table with many types:** CREATE TABLE test_db.test03 ( c0 int, c1 bigint, c2 float, c3 double, c4 string, c5 date, c6 decimal(10,5), c7 datetime ) engine=paimon properties("primary-key"=c0); **3.4 partition table:** CREATE TABLE test_db.test04 ( c0 int, c1 bigint, c2 float, c3 double, c4 string, c5 date, c6 decimal(10,5), c7 datetime ) engine=paimon partition by (c1) () properties("primary-key"=c0); **3.5 table with bucket:** create table test_db.test05 ( c0 int, c1 bigint, c2 float, c3 double, c4 string, c5 date, c6 decimal(20,10), c7 datetime ) engine = paimon properties ( 'primary-key' = 'c0,c1', 'bucket' = '4', 'bucket-key' = 'c0,c1' ); **Note: All bucket keys should be included in the primary key.** **All table properties will be passed to paimon.** **4.drop table:** drop table if exists test_db.test01; **5.TODO:** **5.1 support ORC format when creating table** **5.2 support alter table and other DDL** Co-authored-by: yaoxiao <yaoxiao@fosun.com>
Contributor
|
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
Contributor
|
run buildall |
Contributor
Author
|
run buildall |
Contributor
FE UT Coverage ReportIncrement line coverage |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cherry-pick from #58894